import Vue from "vue";
import axios from "axios";
// 配置axios默认请求头
axios.defaults.baseURL = 'http://localhost:3000/'
// 携带cookie
axios.defaults.withCredentials = true
// 将axios挂载到Vue原型，全局可得
Vue.prototype.$http = axios

export {axios}